package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("cmfz_guru")
public class CmfzGuru implements Serializable {
    /*CREATE TABLE `cmfz_guru` (
            `guru_id` int(100) NOT NULL AUTO_INCREMENT,
  `guru_name` varchar(100) DEFAULT NULL,
  `guru_image` varchar(200) DEFAULT NULL,
  `guru_nickname` varchar(50) DEFAULT NULL,
  `guru_status` int(11) DEFAULT NULL COMMENT '1冻结 冻结的同时需要下架相关的专辑和文章',
    PRIMARY KEY (`guru_id`)*/
    @TableId(value = "guru_id",type = IdType.AUTO)
    @Excel(name = "上师编号")   //@Excel注解  是EasyPoi工具的注解  用来操作文件导入导出的
    private Integer guruId;
    @TableField("guru_name")
    @Excel(name = "上师姓名")
    private String guruName;
    @TableField("guru_image")
    @Excel(name = "上师图片地址",type = 2 ,width = 40 , height = 20,imageType = 1)
    private String guruImage;
    @TableField("guru_nickname")
    @Excel(name = "上师昵称")
    private String guruNickname;
    @TableField("guru_status")
    @Excel(name = "上师状态",replace = {"正常_0","冻结_1"})
    private Integer guruStatus;

}
